#!/bin/bash

cp Dockerfile_fota Dockerfile
docker build -t fota .
#ln -s ./statics ./static
docker rm -f $(docker ps -a|grep fota| awk '{print $1}')
for i in $(seq 4); do
    docker run --restart="always" -d -p "1609${i}":80 -v /tmp:/tmp --name "fota${i}" fota
done
